package com.example.finalassessment.service;

import com.example.finalassessment.model.Product;
import com.example.finalassessment.model.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.finalassessment.util.ResponseData;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author funny_chao
 * @since 2024-12-09
 */
public interface IUserService extends IService<User> {
    public boolean doRegister(User user);//返回true/false
    public String doLogin(User user);//返回token
    User getById(Integer id);
    ResponseData editUser(Integer id, User user);
    ResponseData deleteUser(Integer id);
    ResponseData addUser(User user);
    ResponseData getUserCountPerDay();
    ResponseData updateUser(User user);

}
